﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EasyLanguage.Model
{
    public class User
    {
        [Key]
        public int UserId { get; set; }
        public string Name { get; set; }
        public string NativeLanguage { get; set; }
        public string LearningLanguage { get; set; }

        //Navigation Properties
        public virtual Country Country { get; set; }
        public virtual Account Account { get; set; }
        public virtual ICollection<Test> Tests { get; set; }
        public virtual ICollection<Dictionary> Dictionaries { get; set; }

        //Foreign Keys
        public int CountryId { get; set; }
        public int AccountId { get; set; }
    }
}
